package net.stogi.unicore.beyond.ui.client.taskeditor.taskoutline;

import net.stogi.unicore.beyond.api.model.InputGroup;

import com.google.gwt.event.shared.GwtEvent;

public class InputGroupMovedEvent extends GwtEvent<InputGroupMovedHandler> {

	public static final GwtEvent.Type<InputGroupMovedHandler> TYPE = new GwtEvent.Type<InputGroupMovedHandler>();

	private InputGroup inputGroup;
	
	public InputGroupMovedEvent(InputGroup inputGroup) {
		this.inputGroup = inputGroup;
	}

	@SuppressWarnings("unused")
	private InputGroupMovedEvent() {}

	@Override
	public Type<InputGroupMovedHandler> getAssociatedType() {
		return TYPE;
	}

	public InputGroup getInputGroup() {
		return inputGroup;
	}

	public void setInputGroup(InputGroup inputGroup) {
		this.inputGroup = inputGroup;
	}

	@Override
	protected void dispatch(InputGroupMovedHandler handler) {
		handler.onInputGroupMoved(this);
	}
}
